import Vue from 'vue'
import App from './App'

import { HttpWidget } from './common/dt-request'
import common from './common/unit/common.js'
import store from './store'
import config from 'common/config.js'

// import vConsole from './common/unit/vconsole.min.js'; 
// Vue.use(new vConsole()) // 手机打印日志

// #ifdef H5
import jwx from './common/unit/jwx.js'
import jweixin_module from './common/unit/jweixin-module.js'
import ican from './common/unit/ican-H5Api.js'
Vue.prototype.$jwx = jwx
jwx.readyShare()
// #endif

// #ifdef MP-WEIXIN
import miniProgramPay from '@/common/unit/miniProgramPay.js'
Vue.prototype.$miniProgramPay = miniProgramPay
// #endif

// import TIM from 'tim-js-sdk'
// import tim from './common/tim/tim.js'
// Vue.prototype.$tim = tim  			//tim sdk 引入后生成的tim服务
// Vue.prototype.$TIM = TIM				//tim 的状态/事件 常量

import cuCustom from './colorui/components/cu-custom.vue'
Vue.component('cu-custom',cuCustom)

Vue.config.productionTip = false

App.mpType = 'app'

Vue.prototype.$config = config
Vue.prototype.$store = store
Vue.prototype.$common = common

Vue.use(new HttpWidget())


const app = new Vue({
	store,
    ...App
})
app.$mount()